import net.loststone.*;

class BootStrap {
    
    def init = { servletContext ->
        //def pass = authenticationService.encodePassword('patopay')
        //new AuthenticationUser(login:'administrator', password:pass, email:'admin@patopay.com',
        //    status:AuthenticationService.STATUS_VALID).save()
        new Town( gov_id: '1', name: 'Barcelona', type: 'province' ).save();
        new Town( gov_id: '2', name: 'Barakaldo', type: 'town' ).save();
        new Town( gov_id: "bla", name: "ble", type: "country" ).save()
    }

    def destroy = {
    }
    
} 